package com.example.skillcinema.db.responses

import com.example.skillcinema.db.models.Country
import com.example.skillcinema.db.models.Genre
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class FilmSearchFilmsResponse(
    @Json(name = "filmId") val filmId: Int,
    @Json(name = "nameRu") val nameRu: String?,
    @Json(name = "nameEn") val nameEn: String?,
    @Json(name = "type") val type: String?,
    @Json(name = "year") val year: String?,
    @Json(name = "description") val description: String?,
    @Json(name = "filmLength") val filmLength: String?,
    @Json(name = "countries") val countries: List<Country>,
    @Json(name = "genres") val genres: List<Genre>,
    @Json(name = "rating") val rating: String?,
    @Json(name = "ratingVoteCount") val ratingVoteCount: Int?,
    @Json(name = "posterUrl") val posterUrl: String,
    @Json(name = "posterUrlPreview") val posterUrlPreview: String
)
